class Bookmark {
	static hasMany = [tags:Tag]

	URL url
	String title
	String notes
	Date dateCreated 
	Integer rating
	String type

	static constraints = {
		url()
		title(blank:true)
		dateCreated(nullable:false)
		type(inList:['blog','article','general','news'])
		rating(range:1..10)
		notes(maxLength:1000)
	}
	
	String toString(){
		return "$title - $url"
	}

	
}
